package com.cykj.feign;

import com.cykj.dto.ResponseDTO;
import com.cykj.feign.impl.ProDuctFeignClientFactoryImpl;
import com.cykj.feign.impl.ProDuctFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(value = "JDMS-product",path = "/good",fallback = ProDuctFeignClientImpl.class)
@FeignClient(value = "JDMS-product",path = "/good",fallbackFactory = ProDuctFeignClientFactoryImpl.class)
public interface ProDuctFeignClient{
    @PutMapping("/updateGoodStock")
    ResponseDTO updateGoodStock(@RequestParam("buyCount") Integer count, @RequestParam("goodId") Integer goodId);

    @RequestMapping("/test")
    String test();
}
